﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentSys.Models
{
    /// <summary>
    /// 考试
    /// </summary>
    public class Exam:BaseEntity 
    {
        /// <summary>
        /// 关联班级
        /// </summary>
        [ForeignKey(nameof(Class))]
        public Guid ClassId { get; set; }

        public Class Class { get; set; }

        public DateTime ExamTime    { get; set; }

        /// <summary>
        /// 关联科目
        /// </summary>
        [ForeignKey(nameof(Subject))]
        public Guid SubjectId { get; set; }

        public Subject Subject { get; set; }
    } 
}
